import TaroSafeAreaView from "@src/components/safe-area-view";
import { View ,Image,Text,ScrollView } from "@tarojs/components";
import React from "react";

// 用户中心
const UserCenter = ()=>{
    // 判断是否登录
    // getStorage("accessToken").then(token=>{
    //     console.log(token,"token");
    //     // 获取用户信息
    // }).catch(err=>{
       
    // });

    return (<View>
        <TaroSafeAreaView>
            <View className="userCenter">
                <View className="userCenter__navigation">
                    <View className="userCenter__navigation__back" />
                    <View className="userCenter__navigation__rightLink" />
                </View>
                <ScrollView scrollY className="userCenter__content">
                    <View className="userCenter__userInfo">
                        <Image src="" className="userCenter__userAvator" />
                        <View className="userCenter__userIntro">
                            <View className="userCenter__username">物理宵夜</View>
                            <View className="userCenter__userTag">
                                <Text >时尚｜无锡｜南京师范大学</Text>
                            </View>
                            <View>加入鹿街1000天</View>
                        </View>
                    </View>
                    <View className="userCenter__signaure">
                        TA还没有设置签名
                    </View>
                    <View className="userCenter__popular">
                        <View className="userCenter__popular__item">
                            <View>5.3万</View>
                            <View>获赞与收藏</View>
                        </View>
                        <View className="userCenter__popular__item">
                            <View>2.3万</View>
                            <View>粉丝</View>
                        </View>
                        <View className="userCenter__popular__item">
                            <View>2</View>
                            <View>关注</View>
                        </View>

                        <View className="userCenter__interact">+ 关注</View>
                    </View>
                    <View />
                </ScrollView>
            </View>
        </TaroSafeAreaView>
    </View>);
};

export default UserCenter; 